import axios from "../../axios.js"
// 结账查询接口
export default {
  //结账查询列表
  selectFrontBackCheckoutApi(data, binding) {
    return axios({
      url: '/crm/selectFrontBackCheckout',
      method: 'post',
      data,
      headers: {
        "binding": binding
      }
    })
  },
  // 查看历史处理状态
  processHistory(data, binding) {
    return axios({
      url: '/crm/processHistory',
      method: 'get',
      params:data,
      headers: {
        "binding": binding
      }
    })
  },
  // 当前数据的审批历史图表
  processMap(data, binding) {
    return axios({
      url: '/crm/processMap',
      method: 'get',
      params:data,
      headers: {
        "binding": binding
      }
    })
  },
  // 同意审批
  doApproval(data, binding) {
    return axios({
      url: '/crm/doApproval',
      method: 'post',
      data,
      headers: {
        "binding": binding
      }
    })
  },
  // 分配给别人
  doReassign(data, binding) {
    return axios({
      url: '/crm/doReassign',
      method: 'get',
      params:data,
      headers: {
        "binding": binding
      }
    })
  },
  // 拒绝
  doRejected(data, binding) {
    return axios({
      url: '/crm/doRejected',
      method: 'post',
      data,
      headers: {
        "binding": binding
      }
    })
  },
  // 查看自己的待审批
  getApproval(data, binding) {
    return axios({
      url: '/crm/getApproval',
      method: 'get',
      params:data,
      headers: {
        "binding": binding
      }
    })
  },
  // 查看详情
  getDetail(data, binding) {
    return axios({
      url: '/crm/selectFrontBackCheckoutOne',
      method: 'get',
      params:data,
      headers: {
        "binding": binding
      }
    })
  },
  // 详情修改
  updateDetail(data, binding) {
    return axios({
      url: '/crm/updateFrontBackCheckoutOne',
      method: 'post',
      data,
      headers: {
        "binding": binding
      }
    })
  },

};
